SET SPRITE ALPHA

This command will set the alpha value of the specified sprite.

  Syntax
SET SPRITE ALPHA Sprite Number, Alpha Value
  Parameters
Sprite Number
Integer
The sprite number
Alpha Value
Integer
The Alpha value range is 0 to 255, with 255 being completely solid and 0 being invisible

  Returns

This command does not return a value.

  Description

The alpha controls how much of the sprite is present on screen and is used to create a translucent sprite. The Alpha value range is 0 to 255, with 255 being completely solid and 0 being invisible. The parameters should be specified using integer values.

  Example Code
load image "manwalking.bmp",1
cls
sprite 1,100,100,1
set sprite alpha 1,255
do
loop
end
  See also

SPRITE Commands Menu
Index